<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    const map = new Map()
    map.set('one', 1)
    map.set('two', 2)
    console.log(map);//对象
    console.log(Array.from(map));// Array.from() 将一个类数组对象或者可遍历对象(Set,Map,String)转成一个真正的数组
</script>
</html>